package com.qinglei.recoup.system.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.qinglei.recoup.system.domain.BedHealthQO;
import com.qinglei.recoup.system.domain.TableFeatures;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

/**
 * @author dqh
 */
@DS("slave_1")
public interface TableFeaturesMapper extends BaseMapper<TableFeatures> {

    TableFeatures selectDate(@Param("snCode") String snCode,@Param("date") String statisticsDate);
    List<Map<String, Object>> selectVitalityAndMoraleAndFall(@Param("p")BedHealthQO bedHealthQO);


    TableFeatures selectBySNAndDate(@Param("snCode") String snCode,@Param("startDate") String startDate,@Param("endDate") String endDate);
}
